import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'compression_result.dart';
import 'light_compressor_ohos_method_channel.dart';

abstract class LightCompressorOhosPlatform extends PlatformInterface {
  /// Constructs a LightCompressorOhosPlatform.
  LightCompressorOhosPlatform() : super(token: _token);

  static final Object _token = Object();

  static LightCompressorOhosPlatform _instance = MethodChannelLightCompressorOhos();

  /// The default instance of [LightCompressorOhosPlatform] to use.
  ///
  /// Defaults to [MethodChannelLightCompressorOhos].
  static LightCompressorOhosPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [LightCompressorOhosPlatform] when
  /// they register themselves.
  static set instance(LightCompressorOhosPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<String?> selectVideo() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<bool?> cancelCompression() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<Result> startCompression({
    required String path,
    required VideoQuality videoQuality,
  }) {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Stream<double> getUpdateStream() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<double> getFileSize(String filePath) {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
}
